﻿<?xml version="1.0" encoding="utf-8" ?>
<FieldTypes>
  <FieldType>
    <Field Name="TypeName">USAddress</Field>
    <Field Name="ParentType">MultiColumn</Field>
    <Field Name="TypeDisplayName">US Address</Field>
    <Field Name="TypeShortDescription">Store and validate US  Addresses.</Field>
    <Field Name="UserCreatable">TRUE</Field>
    <Field Name="FieldTypeClass">Rtl.SharePoint.USAddressField, Rtl.SharePoint.CustomFieldTypes.USAddress, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0d0adad34de2675c</Field>
    <PropertySchema>
      <Fields>
        <Field Name="DefaultCity" DisplayName="Default City"
          MaxLength="50" DisplaySize="15" Type="Text">
          <Default>San Antonio</Default>
        </Field>
        <Field Name="DefaultState" DisplayName="Default State"
          MaxLength="2" DisplaySize="2" Type="Text">
          <Default>TX</Default>
        </Field>
      </Fields>
    </PropertySchema>
    <RenderPattern Name="DisplayPattern">
      <Switch>
        <Expr>
          <Column />
        </Expr>
        <Case Value="">
        </Case>
        <Default>
          <Column SubColumnNumber="0" HTMLEncode="TRUE"/>
          <HTML><![CDATA[<br />]]></HTML>
          <Switch>
            <Expr><Column SubColumnNumber="1"/></Expr>
            <Case Value=""></Case>
            <Default>
              <Column SubColumnNumber="1" HTMLEncode="TRUE"/>
              <HTML><![CDATA[<br />]]></HTML>
            </Default>
          </Switch>
          <Column SubColumnNumber="2" HTMLEncode="TRUE"/>
          <HTML><![CDATA[, &nbsp;]]></HTML>
          <Column SubColumnNumber="3" HTMLEncode="TRUE"/>
          <HTML><![CDATA[ &nbsp;]]></HTML>
          <Column SubColumnNumber="4" HTMLEncode="TRUE"/>
        </Default>
      </Switch>
    </RenderPattern>
  </FieldType>
</FieldTypes>